<style lang="less" scoped>
.loading {
  margin-top: 0;
  margin-bottom: 0;
  height: 0;
  line-height: 0;
  color: #999;
  overflow: hidden;
  transition: all 0.5s;
  &.active {
    height: 40px;
    line-height: 40px;
  }
}
</style>

<template>
  <div :class="['weui-loadmore', 'loading',{active:loading}]">
    <div class="weui-loading"></div>
    <div class="weui-loadmore__tips">正在加载</div>
  </div>
</template>
<script>
export default {
  computed: {
    loading() {
      return this.$store.getters.loading;
    }
  }
};
</script>
